
<#include "/common/pager_style/commonList.ftl" encoding="UTF-8">
<#-- 定义本页面能有哪些按钮 -->

<#assign buttonsName={"list":"刷新"}>

<#assign buttonsImage = {"later":"detail.gif","refuse":"detail.gif","again":"detail.gif","agree":"detail.gif","isfinish":"detail.gif","recovery":"detail.gif"}>
<#--	如果需要特别的定义按钮的图片，请参照以下格式，不需要则请删除本行及下一行：	-->
<style type="text/css">
	
	#listBody td {
 	 text-align:center;
  	};

	#listBody th {
 	 text-align:center;
  	};
  	
</style>

<script language="javascript">

var actName="weekRecordAction";
var domainName="weekRecord";
	function demo()	{
		//此方法为用户自定义的操作行为
	}
	$(function (){
	//alert(window.parent.document.getElementById("frameSide"));
		//alert($("#isFormSubmitSuccess").val());
		if($("#isFormSubmitSuccess").val()==1){
			$("#isFormSubmitSuccess").val("false")
			alert("提交成功");
		}else if($("#isFormSubmitSuccess").val()==2){
			$("#isFormSubmitSuccess").val("false")
			alert("回收成功");
		}else if($("#isFormSubmitSuccess").val()==3){
			$("#isFormSubmitSuccess").val("false")
			alert("提交成功");
		}else if($("#isFormSubmitSuccess").val()==4){
			$("#isFormSubmitSuccess").val("false")
			alert("该事项已被查看,无法回收");
		}else if($("#isFormSubmitSuccess").val()==5){
			$("#isFormSubmitSuccess").val("false")
			alert("删除草稿成功");
		}else if($("#isFormSubmitSuccess").val()==12){
			$("#isFormSubmitSuccess").val("false")
			alert("事项已提交至单位负责人处签发，请提醒单位负责人及时处理。");
		}							
	});
	function opt_detail(a,b){
	//	alert(b);
		$("#weekFormId").val(b);
		//alert($("#weekFormId").val());
		//return false;
		$("form").eq(0).attr("action",actName + '!add.shtml');
		$("form").eq(0).submit();
	}
	
		
	//导出excel
		function opt_print(){
		    var oldAction = $("form").eq(0).attr("action");
			document.forms[0].action='weekRecordAction!exportExecl.shtml';
			document.forms[0].submit();
			document.forms[0].action=oldAction;		
	}
</script>
</head>
<body scroll="no">
<form name="form1" action="weekRecordAction!addList.shtml" method="post">
<#--列表参数-->
		<input type="hidden" name="id" id="id" value="">
		<input type="hidden" name="weekRecord.id" id="weekRecord.id" value="">
		<input type="hidden" name="domainFileName" id="domainFileName" value="${(domainFileName)?if_exists}"/>
		<input type="hidden" name="propConfigName" id="propConfigName" value="${(propConfigName)?if_exists}"/>
		<input type="hidden" name="editState" id="editState" value="${(editState)?if_exists}">
		<input type="hidden" name="statusType" id="statusType" value="${(statusType)?if_exists}">		
		<input type="hidden" name="isFormSubmitSuccess" id="isFormSubmitSuccess" value="${(isFormSubmitSuccess)?if_exists}">
		<input type="hidden" name="weekFormId" id="weekFormId" value="${(weekFormId)?if_exists}">
<#-- 隐藏域，用于记录本列表数据的的上级，根据情况看是否需要 -->
	<#--	<input type="hidden" name="wfStepUser.wfStepUser.id" value="${(wfStepUser.wfStepUser.id)?if_exists}">	-->
	<div class="ui-com-top">
	<#-- 生成按钮及表格数据 -->
			<#include "/common/pager_style/pageButtonsEx.ftl" encoding="UTF-8">
	</div><!-- end #ui-com-top -->
	<div class="ui-com-main">
		<div class="selectButton" height="98%">
			<fieldSet>
				<legend class="icon_warning">筛选条件</legend>
					<@pEdit.pageEditText
						label="标题："
						pageState="modify"
						TR="false"
						TD="false"
						cssStyle="width:10%;"
						attName="filter_LIKES_a@formName"
						attValue="${(filter_LIKES_a@formName)?if_exists}"
					/>
				<input type="button" value="&nbsp;&nbsp;检&nbsp;&nbsp;索&nbsp;&nbsp;" onclick="do_filter();return false;">
			</fieldSet>
		</div>
		<div class="body">
			<!--	开始生成页面数据表格	-->
		<#import "/common/pager_style/pager.ftl" as comPager><#-- 生成列表页面的ftl模板文件	 -->
		<@comPager.pager page=(page)?if_exists title="" skin=skin/>
			<!--	页面数据表格生成结束	-->
		</div><!-- end #body -->
	</div><!-- end #ui-com-main -->
	<div id="removeData" style="display:none;">
			<ol style="margin:0px; padding:0px;">
			<dl>
				<dt>
					<span style="padding-left:50px; text-align:left;font-weight:bold;">请填写销毁原因：</span>
				</dt>
				<dt style="padding-left:50px;">
					<textarea name="operateReason" id="testOperateReason" style="width:450px;height:200px;overflow-y:auto;"></textarea>
				</dt>
			</dl>
		   </ol>
		 </div>
</form>
</body>
</html>